package com.daoeping.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Cop_contactinfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "cop_contactinfo", catalog = "daoeping")
public class Cop_contactinfo implements java.io.Serializable {

	// Fields

	private Integer id;
	private String contactvalue;
	private Cop_contacttype cop_contacttype;
	private Cop_group cop_group;

	// Constructors

	/** default constructor */
	public Cop_contactinfo() {
	}

	/** minimal constructor */
	public Cop_contactinfo(Cop_contacttype cop_contacttype, Cop_group cop_group) {
		this.cop_contacttype = cop_contacttype;
		this.cop_group = cop_group;
	}


	/** full constructor */
	public Cop_contactinfo(Cop_contacttype cop_contacttype, Cop_group cop_group,
			String contactvalue) {
		this.cop_contacttype = cop_contacttype;
		this.cop_group = cop_group;
		this.contactvalue = contactvalue;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}


	@Column(name = "contactvalue", length = 200)
	public String getContactvalue() {
		return this.contactvalue;
	}

	public void setContactvalue(String contactvalue) {
		this.contactvalue = contactvalue;
	}

	@ManyToOne
	@JoinColumn(name = "cop_contacttype_id")
	public Cop_contacttype getCop_contacttype() {
		return cop_contacttype;
	}

	public void setCop_contacttype(Cop_contacttype cop_contacttype) {
		this.cop_contacttype = cop_contacttype;
	}


	@ManyToOne
	@JoinColumn(name = "cop_group_id")
	public Cop_group getCop_group() {
		return cop_group;
	}


	public void setCop_group(Cop_group cop_group) {
		this.cop_group = cop_group;
	}

}